<!-- 分销商 -->
<template>
    <div class="page-box h100 display-flex czbj">
        <p class="title-label">分销商列表</p>
        <div class="mt10">
            <dxtable 
            :dataJson="dataJson"
             :portUrl="portUrl"
             :isshowXz="false"
              :qx="qx" ></dxtable>
        </div>
    </div>
</template>
<script lang='ts' setup>
import dxtable from "./../../components/util/dxtable.vue";
import { h, ref, reactive } from "vue";
import {toFixed} from "../../util/index"
let dataJson = reactive([

    {
    title: '头像',
    key: 'headimgurl',
    render(row){
        return h('img',{class:"dsfsdtrtr",src:row.headimgurl})
    }
  },
    {
        title: "昵称",
        key: "nickname",
        search: true, // 是否在搜索栏展示
    }, 
    
    {
        title: "当前分销金额",
        key: "CurrentAmount",
        render(row) {
            return toFixed(row.CurrentAmount)+'元'
        },
    },
    {
        title: "累计分销金额",
        key: "accruingAmounts",
        render(row) {
            return toFixed(row.accruingAmounts)+'元'
        },
    },
 

]);
let portUrl = "mh/wxcharUser_mh?promotion=2";
const qx = {
    DeletePermissionID: "mhdistributordel", //删除
    EditPermissionIdentifier: "mhdistributorbj222", // 编辑
    NewPermissionIdentifier: "mhdistributorxz", // 新建
    ViewPermissionID: "mhdistributorck", // 查看
};


</script>


